var app = getApp();

Page({
    data: {},
    onLoad: function(t) {
        wx.hideShareMenu(), this.refresh();
        var n = wx.getStorageSync("db_tab"), a = app.contains(n, "../authentication/authentication");
        console.log(a), 0 != a && (n[a].color = "selsects", n[a].img = n[a].icon1, console.log(n)), 
        this.setData({
            yes: a,
            db_tab: n
        });
    },
    refresh: function(t) {
        var a = this;
        app.getUserInfo(function(t) {
            var n = t.id;
            app.util.request({
                url: "entry/wxapp/GetUserInfo",
                cachetime: "0",
                data: {
                    user_id: n
                },
                success: function(t) {
                    console.log("这是GetUserInfo"), console.log(t), a.setData({
                        rz_type: t.data.rz_type,
                        sh: t.data.sh,
                        id: t.data.id
                    });
                }
            });
        });
    },
    select: function(t) {
        wx.navigateTo({
            url: "select?id=0"
        });
    },
    wode: function() {
        var t = this.data.db_tab;
        wx.reLaunch({
            url: t[3].src
        });
    },
    fabu: function() {
        wx.reLaunch({
            url: "../fabu/fabu"
        });
    },
    index: function() {
        var t = this.data.db_tab;
        wx.reLaunch({
            url: t[0].src
        });
    },
    classifination: function(t) {
        var n = this.data.db_tab;
        wx.reLaunch({
            url: n[1].src
        });
    },
    mine_activity: function(t) {
        var n = this.data.db_tab;
        wx.reLaunch({
            url: n[2].src
        });
    },
    onReady: function() {},
    onShow: function() {
        this.refresh();
    },
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {
        this.refresh(), wx.stopPullDownRefresh();
    },
    onReachBottom: function() {}
});